gtk4.git
4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 1 May 2021 15:59:21 +0000 (15:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

wayland: Rewrite shm format debug spew

See merge request GNOME/gtk!3492

4 years agowayland: Rewrite shm format debug spew
Matthias Clasen [Sat, 1 May 2021 15:05:27 +0000 (11:05 -0400)]
wayland: Rewrite shm format debug spew

Rewrite this in a way that doesn't depend on kernel
header defines at the time the wayland scanner was run.

This was causing the build to break on Centos 8, where
a bunch of fourcc formats are missing.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 30 Apr 2021 19:29:15 +0000 (19:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Check for root being a GtkWindow in a few places

See merge request GNOME/gtk!3491

4 years agoCheck for root being a GtkWindow in a few places
Matthias Clasen [Fri, 30 Apr 2021 17:44:15 +0000 (13:44 -0400)]
Check for root being a GtkWindow in a few places

These things were showing up as crashes during DND,
when the root is a GtkDragIcon. I'm sure there's more.

4 years agoMerge branch 'bilelmoussaoui/gdk-content-formats-annotations' into 'master'
Matthias Clasen [Fri, 30 Apr 2021 16:48:04 +0000 (16:48 +0000)]
Merge branch 'bilelmoussaoui/gdk-content-formats-annotations' into 'master'

gdk: add length annotation to gdk_content_formats_get_mime_types

See merge request GNOME/gtk!3488

4 years agoMerge branch 'clipboard-test' into 'master'
Matthias Clasen [Fri, 30 Apr 2021 15:25:50 +0000 (15:25 +0000)]
Merge branch 'clipboard-test' into 'master'

Add more clipboard tests

See merge request GNOME/gtk!3478

4 years agoInstall the clipboard-client binary
Matthias Clasen [Fri, 30 Apr 2021 13:46:11 +0000 (09:46 -0400)]
Install the clipboard-client binary

It is needed for the installed test.

4 years agogdk: add zero-terminated annotation to content_formats_get_gtypes
Bilal Elmoussaoui [Fri, 30 Apr 2021 13:40:27 +0000 (15:40 +0200)]
gdk: add zero-terminated annotation to content_formats_get_gtypes

4 years agogdk: fix content_formats_get_mime_types annotation
Bilal Elmoussaoui [Fri, 30 Apr 2021 11:42:02 +0000 (11:42 +0000)]
gdk: fix content_formats_get_mime_types annotation

4 years agoSkip clipboard tests when they don't work
Matthias Clasen [Fri, 30 Apr 2021 13:17:39 +0000 (09:17 -0400)]
Skip clipboard tests when they don't work

On headless weston, we have no seat, so focusing
the window won't work, and thus claiming the clipboard
won't either. Skip the tests in that case.

4 years agoRun gdk tests with an unset D-Bus address
Matthias Clasen [Fri, 30 Apr 2021 12:10:48 +0000 (08:10 -0400)]
Run gdk tests with an unset D-Bus address

If the session bus address is unset, GLib will
helpfully try to autolaunch a bus, which will
fail and timeout. If we set an empty address,
it gives up early.

4 years agoFix the clipboard test under X11
Matthias Clasen [Fri, 30 Apr 2021 12:02:35 +0000 (08:02 -0400)]
Fix the clipboard test under X11

We don't have a signal handler to worry about here.

4 years agoMake clipboard tests run installed
Matthias Clasen [Fri, 30 Apr 2021 11:47:19 +0000 (07:47 -0400)]
Make clipboard tests run installed

Use dedicated data files, and install them.
As usual, to run the test binary by hand, you
will need to set G_TEST_SRCDIR.

4 years agoUpdate Nepali translation
Pawan Chitrakar [Fri, 30 Apr 2021 10:51:44 +0000 (10:51 +0000)]
Update Nepali translation

(cherry picked from commit 24e924720d0e39aa5547a729923628ad3eb8d650)

4 years agoAdd more clipboard tests
Matthias Clasen [Mon, 26 Apr 2021 21:02:50 +0000 (17:02 -0400)]
Add more clipboard tests

This tests the simple cases of copying text,
files, colors or images between processes.

4 years agoMerge branch 'bookmark-fix' into 'master'
Matthias Clasen [Wed, 28 Apr 2021 16:09:32 +0000 (16:09 +0000)]
Merge branch 'bookmark-fix' into 'master'

gtkplacessidebar.c: add bookmark null checking

See merge request GNOME/gtk!3479

4 years agogtkplacessidebar.c: fix coding style
Geyslan G. Bem [Wed, 28 Apr 2021 11:42:59 +0000 (08:42 -0300)]
gtkplacessidebar.c: fix coding style

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
4 years agoMerge branch 'ebassi/issue-3905' into 'master'
Emmanuele Bassi [Wed, 28 Apr 2021 09:50:55 +0000 (09:50 +0000)]
Merge branch 'ebassi/issue-3905' into 'master'

docs: Add missing extra files for gdk4 sub-references

Closes #3905

See merge request GNOME/gtk!3481

4 years agoMerge branch 'memfd_create' into 'master'
Matthias Clasen [Wed, 28 Apr 2021 00:50:42 +0000 (00:50 +0000)]
Merge branch 'memfd_create' into 'master'

gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available

See merge request GNOME/gtk!3480

4 years agodocs: Add missing extra files for gdk4 sub-references
Emmanuele Bassi [Wed, 28 Apr 2021 00:44:47 +0000 (01:44 +0100)]
docs: Add missing extra files for gdk4 sub-references

The Wayland and X11 references need the gtk-logo.svg and the urlmap.js
extra files.

Fixes: #3905
4 years agogdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available
David Lechner [Tue, 27 Apr 2021 16:37:16 +0000 (11:37 -0500)]
gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available

When building for homebrew/linuxbrew on Ubuntu 16.04, memfd_create() is
not available and causes the build to fail.

This adds a proper check for the function.

4 years agogtkplacessidebar.c: add bookmark null checking
Geyslan G. Bem [Tue, 27 Apr 2021 14:42:55 +0000 (11:42 -0300)]
gtkplacessidebar.c: add bookmark null checking

This fixes nautilus crash and perhaps other callers issues.
Nautilus (and sometimes glib) crashes with malformed URI inside of the
bookmarks file .config/gtk-3.0/bookmarks when it has no LABEL.

This is result from the closed glib MR #2065 analysis and agreement.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2065#note_1091979

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
4 years agoMerge branch 'fix-panel-monitor' into 'master'
Matthias Clasen [Tue, 27 Apr 2021 03:48:13 +0000 (03:48 +0000)]
Merge branch 'fix-panel-monitor' into 'master'

x11: Try harder to find the right monitor

Closes #3900

See merge request GNOME/gtk!3477

4 years agox11: Try harder to find the right monitor
Matthias Clasen [Tue, 27 Apr 2021 03:18:50 +0000 (23:18 -0400)]
x11: Try harder to find the right monitor

If we deal with a panel, we end up with no monitor,
and crash, which isn't great and isn't necessary.

Fixes: #3900
4 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Mon, 26 Apr 2021 21:15:32 +0000 (21:15 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

clipboard: Make sure G_TYPE_STRING is nul-terminated

Closes #3899

See merge request GNOME/gtk!3476

4 years agoclipboard: Fix reading of files
Benjamin Otte [Mon, 26 Apr 2021 19:32:00 +0000 (21:32 +0200)]
clipboard: Fix reading of files

Make sure writing a terminating null byte actually works and we don't
just ignore the error message.

4 years agoclipboard: Make sure G_TYPE_STRING is nul-terminated
Benjamin Otte [Mon, 26 Apr 2021 18:57:55 +0000 (20:57 +0200)]
clipboard: Make sure G_TYPE_STRING is nul-terminated

When reading text, we need to check we terminate the G_TYPE_STRING
string with a null byte, because the clipboard does not guarantee one.

So just append a \0 to the stream.

Fixes #3899

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 26 Apr 2021 11:59:01 +0000 (11:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

wayland: Print all layouts in debug spew

See merge request GNOME/gtk!3475

4 years agowayland: Print all layouts in debug spew
Matthias Clasen [Mon, 26 Apr 2021 04:15:50 +0000 (00:15 -0400)]
wayland: Print all layouts in debug spew

4 years agoUpdate Nepali translation
Pawan Chitrakar [Mon, 26 Apr 2021 01:10:11 +0000 (01:10 +0000)]
Update Nepali translation

(cherry picked from commit 193747fadff285ef7cf921158c454571adece94d)

4 years agoUpdate Catalan translation
Jordi Mas [Sun, 25 Apr 2021 18:08:19 +0000 (20:08 +0200)]
Update Catalan translation

4 years agoMerge branch 'fix-x11-shadows' into 'master'
Matthias Clasen [Sun, 25 Apr 2021 11:43:23 +0000 (11:43 +0000)]
Merge branch 'fix-x11-shadows' into 'master'

x11: Fix shadows

Closes #3896

See merge request GNOME/gtk!3473

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 24 Apr 2021 21:27:38 +0000 (21:27 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Mention nightly flatpaks in the README

See merge request GNOME/gtk!3474

4 years agoApply 4 suggestion(s) to 1 file(s)
Matthias Clasen [Sat, 24 Apr 2021 17:47:43 +0000 (17:47 +0000)]
Apply 4 suggestion(s) to 1 file(s)

4 years agoMention nightly flatpaks in the README
Matthias Clasen [Sat, 24 Apr 2021 15:41:44 +0000 (11:41 -0400)]
Mention nightly flatpaks in the README

4 years agowindow: Don't let solid-csd linger
Matthias Clasen [Sat, 24 Apr 2021 15:29:19 +0000 (11:29 -0400)]
window: Don't let solid-csd linger

Just from reading the code, it seems that we
should unset .csd and .solid-csd at the same
time, since the are mutually exclusive and
we unset them here so realize() can set one
of them again.

4 years agoSimplify shadow conditions
Matthias Clasen [Sat, 24 Apr 2021 15:07:20 +0000 (11:07 -0400)]
Simplify shadow conditions

The code in gtkwindow.c for dealing with the various
combinations of client-side decorations and client-side
shadows is entirely too complicated.

This commit does not really clean it up, but simplifies
one of the shadow conditions far enough to make some
sense.

With this change, I get the expected decorations in
all the cases I can easily reproduce locally.

4 years agox11: Fix shadows
Matthias Clasen [Sat, 24 Apr 2021 13:16:42 +0000 (09:16 -0400)]
x11: Fix shadows

Commit a2cd21cab663a003 changed a condition and inadvertedly
broke client-side shadows on X11. Change this back.

Fixes: #3896
4 years agoMerge branch 'a11y-properties' into 'master'
Emmanuele Bassi [Fri, 23 Apr 2021 12:04:47 +0000 (12:04 +0000)]
Merge branch 'a11y-properties' into 'master'

a11y: Don't sent redundant property changes

See merge request GNOME/gtk!3472

4 years agoa11y: Don't sent redundant property changes
Matthias Clasen [Fri, 23 Apr 2021 01:05:35 +0000 (21:05 -0400)]
a11y: Don't sent redundant property changes

We were sending a property changed event for every set
property whenever we were sending any updates.

4 years agoMerge branch 'synthetic-motion-grab' into 'master'
Matthias Clasen [Fri, 23 Apr 2021 03:11:36 +0000 (03:11 +0000)]
Merge branch 'synthetic-motion-grab' into 'master'

gdk: Avoid synthetic motion confusion

Closes #3439

See merge request GNOME/gtk!3471

4 years agogdk: Avoid synthetic motion confusion
Matthias Clasen [Thu, 22 Apr 2021 23:51:17 +0000 (19:51 -0400)]
gdk: Avoid synthetic motion confusion

Don't emit a synthetic motion event on a surface
that is grab-shadowed by a popup. This has been
known to confuse GTK, at times.

Fixes: #3439
4 years agoMerge branch 'gtk4-listbox-selection' into 'master'
Matthias Clasen [Thu, 22 Apr 2021 23:29:45 +0000 (23:29 +0000)]
Merge branch 'gtk4-listbox-selection' into 'master'

Allow repeated selection extension on gtklistbox

Closes #3887

See merge request GNOME/gtk!3461

4 years agoMerge branch 'resize-borders' into 'master'
Matthias Clasen [Thu, 22 Apr 2021 11:13:20 +0000 (11:13 +0000)]
Merge branch 'resize-borders' into 'master'

window: Fix up resize borders

Closes #3856

See merge request GNOME/gtk!3467

4 years agoMerge branch 'a11y-debug' into 'master'
Matthias Clasen [Thu, 22 Apr 2021 11:04:30 +0000 (11:04 +0000)]
Merge branch 'a11y-debug' into 'master'

Some a11y improvements

See merge request GNOME/gtk!3455

4 years agoMerge branch 'gtk4-compose-modifiers' into 'master'
Matthias Clasen [Thu, 22 Apr 2021 10:58:24 +0000 (10:58 +0000)]
Merge branch 'gtk4-compose-modifiers' into 'master'

imcontextsimple: Ignore more modifiers in compose

See merge request GNOME/gtk!3468

4 years agoMerge branch 'wip/muktupavels/solid-csd' into 'master'
Matthias Clasen [Thu, 22 Apr 2021 10:48:22 +0000 (10:48 +0000)]
Merge branch 'wip/muktupavels/solid-csd' into 'master'

theme: fix solid-csd style

See merge request GNOME/gtk!3460

4 years agotheme: Make solid borders look better
Matthias Clasen [Thu, 22 Apr 2021 10:43:46 +0000 (06:43 -0400)]
theme: Make solid borders look better

As pointed out by Alberts Muktupāvels, without this,
we are missing the inner edge of the frame.

4 years agotheme: Fix solid-csd borders
Matthias Clasen [Thu, 22 Apr 2021 01:10:17 +0000 (21:10 -0400)]
theme: Fix solid-csd borders

The selectors did not apply anymore.
Based on a patch by Alberts Muktupāvels.

4 years agowindow: Make resize border size independent
Matthias Clasen [Thu, 22 Apr 2021 10:33:30 +0000 (06:33 -0400)]
window: Make resize border size independent

Deriving the resize border size from the shadows
carries the risk that we might end up with uneven
resize borders (or none at all, on some sides).

So, justs enforce that we have a big enough shadow
width on all sides.

4 years agoimcontextsimple: Ignore more modifiers in compose
Ulli Kehrle [Wed, 21 Apr 2021 23:50:35 +0000 (01:50 +0200)]
imcontextsimple: Ignore more modifiers in compose

Previously it was impossible to compose characters on higher levels of
some keyboard layouts as pressing the level selection key would just
exit compose mode.

Examples for affected keyboard layouts include the Latvian
apostrophe-variant "lv(apostrophe)" (latched third level), the extended
German keyboard layout "de(e1)" (latched fifth level) as well as the
multilingual Canadian keyboard layout "ca(multix)" and the German
neo-layout "de(neo)" and its descendants (shifted fifth level).

To reproduce, set a compose key and select the Latvian apostrophe layout.
Notice that you now can input [ by pressing first the ' and then the 8-key.
Then pressing <compose>'8'8 should produce ⟦, but prior to this patch it
did not.

4 years agowindow: Tweak resize borders
Matthias Clasen [Thu, 22 Apr 2021 01:09:09 +0000 (21:09 -0400)]
window: Tweak resize borders

Make windows resizable in the padding and border
area of the css box as well. This naturally makes
solid-csd borders work again.

4 years agowindow: Fix up resize borders
Matthias Clasen [Thu, 22 Apr 2021 00:00:49 +0000 (20:00 -0400)]
window: Fix up resize borders

The invisible resize borders have been wider than they
should, for a while. Go back to a size close to what
we have in GTK3.

To summarize: resize borders will be at most 12 pixels
on each size, but never wider than the windows shadow.
The resize corners have 'legs' of 24 pixels where you
still get a corner resize cursor.

Fixes: #3856
4 years agoAllow repeated selection extension on gktlistbox
John Renner [Tue, 20 Apr 2021 20:52:52 +0000 (13:52 -0700)]
Allow repeated selection extension on gktlistbox

4 years agoMerge branch 'im-cursor-pos' into 'master'
Matthias Clasen [Wed, 21 Apr 2021 17:43:12 +0000 (17:43 +0000)]
Merge branch 'im-cursor-pos' into 'master'

imcontext: Fix cursor positions

Closes #3885

See merge request GNOME/gtk!3464

4 years agoMerge branch 'wip/oholy/placesview-default-location-regression' into 'master'
Matthias Clasen [Wed, 21 Apr 2021 12:22:17 +0000 (12:22 +0000)]
Merge branch 'wip/oholy/placesview-default-location-regression' into 'master'

placesview: Open location even if mount was not found

Closes nautilus#1811

See merge request GNOME/gtk!3435

4 years agoa11y: Update the labelled-by relation of GtkTreeExpander
Emmanuele Bassi [Wed, 21 Apr 2021 10:43:16 +0000 (11:43 +0100)]
a11y: Update the labelled-by relation of GtkTreeExpander

Whenever we change the :child property, we need to update the
labelled-by relation.

4 years agoa11y: Set state on the GtkTreeExpander widget
Emmanuele Bassi [Wed, 21 Apr 2021 10:14:28 +0000 (11:14 +0100)]
a11y: Set state on the GtkTreeExpander widget

Instead of setting it on its internal child.

4 years agoimcontext: Fix cursor positions
Matthias Clasen [Wed, 21 Apr 2021 10:27:26 +0000 (06:27 -0400)]
imcontext: Fix cursor positions

gtk_im_context_get_preedit_string is documented to
return the cursor position as a character offset,
not a byte count. So return that.

Fixed: #3885

4 years agoMerge branch 'untrusted-beep' into 'master'
Matthias Clasen [Wed, 21 Apr 2021 10:12:39 +0000 (10:12 +0000)]
Merge branch 'untrusted-beep' into 'master'

x11: Don't beep on untrusted displays

Closes #3862

See merge request GNOME/gtk!3463

4 years agoa11y: Pair window:activate with window:deactivate signal
Emmanuele Bassi [Wed, 21 Apr 2021 09:20:04 +0000 (10:20 +0100)]
a11y: Pair window:activate with window:deactivate signal

Orca needs both events in order to decide whether or not to subscribe to
other event/state changes in a window.

4 years agox11: Don't beep on untrusted displays
Matthias Clasen [Wed, 21 Apr 2021 00:53:02 +0000 (20:53 -0400)]
x11: Don't beep on untrusted displays

This can trigger BadAccess, and we don't
want that.

Fixes: #3862
4 years agoa11y: Realize notebook tabs when switching
Matthias Clasen [Wed, 21 Apr 2021 00:35:22 +0000 (20:35 -0400)]
a11y: Realize notebook tabs when switching

We're not moving focus here, so we can't rely
on that to conjure the a11y objects into existence.

4 years agotheme: fix solid-csd style
Alberts Muktupāvels [Tue, 20 Apr 2021 19:02:10 +0000 (22:02 +0300)]
theme: fix solid-csd style

Move .solid-csd style out of .csd parent and adjust it so windows
look similar / same to GTK 3 windows:
- 4px padding.
- extra shadow.

https://gitlab.gnome.org/GNOME/gtk/-/issues/3879#note_1086351
https://gitlab.gnome.org/GNOME/gtk/-/issues/3879#note_1086377

4 years agoa11y: Avoid spurious selection changed events
Matthias Clasen [Tue, 20 Apr 2021 17:23:56 +0000 (13:23 -0400)]
a11y: Avoid spurious selection changed events

Only send selection-changed events when we either
had a non-empty selection before, or have one now.

This should help orca speak the right things, and
not the wrong things.

Related: #3549

4 years agoa11y: Emit window:activate event
Emmanuele Bassi [Tue, 20 Apr 2021 16:24:13 +0000 (17:24 +0100)]
a11y: Emit window:activate event

Orca uses the window:activate event type to track top levels, and avoid
being spammed by events coming from non-focused windows.

4 years agostackswitcher: Set accessible label properties
Matthias Clasen [Tue, 20 Apr 2021 02:11:55 +0000 (22:11 -0400)]
stackswitcher: Set accessible label properties

This makes the tabs in about dialogs come out as
'About', 'Credits', and 'System', instead of
'Tab', 'Tab', 'Tab'.

4 years agoa11y: Emit focus events
Matthias Clasen [Tue, 20 Apr 2021 01:29:17 +0000 (21:29 -0400)]
a11y: Emit focus events

Orca relies on these to keep track of the focus location,
ignoring the focused state. With this change, orca can
once again speak text in entries as I type.

4 years agoa11y: Make things appear on focus in
Matthias Clasen [Tue, 20 Apr 2021 00:39:32 +0000 (20:39 -0400)]
a11y: Make things appear on focus in

We are starting with a pretty empty a11y object tree,
and we want orca to bring more of it into existence
by navigating the tree. But that only happens when we
send it events. Primarily focus events, which come in
from GTK via the platform_change mechanism. So realize
the context when we are sending platform_changes,
otherwise, orca never gets the mesage.

4 years agoMerge branch 'fix-uri-crash' into 'master'
Matthias Clasen [Mon, 19 Apr 2021 21:09:44 +0000 (21:09 +0000)]
Merge branch 'fix-uri-crash' into 'master'

Fix a possible crash in gtk_show_uri

Closes #3883

See merge request GNOME/gtk!3457

4 years agoFix a possible crash in gtk_show_uri
Matthias Clasen [Mon, 19 Apr 2021 20:39:53 +0000 (16:39 -0400)]
Fix a possible crash in gtk_show_uri

g_file_get_basename can return NULL.
Deal with it somehow.

Fixes: #3883
4 years agoa11y: Actually set accessible roles
Matthias Clasen [Sat, 17 Apr 2021 23:02:53 +0000 (19:02 -0400)]
a11y: Actually set accessible roles

With most context realization happening inside
GtkAtspiContext in response to D-Bus calls, the
code in gtk_widget_realize_at_context that sets
the role is not executed for most accessibles,
causing them to be stuck with the 'filler' role
that makes orca ignore them.

To fix this, split gtk_widget_realize_at_context
into the actual context realization (getting on
the bus) and the setting of widget-specific
properties, and do the latter part when the
widget is rooted.

This makes accerciser report proper roles for
entries and buttons. Orca still has an issue
with getting the hierarchy populated.

4 years agoa11y: Track window states more closely
Matthias Clasen [Sat, 17 Apr 2021 19:23:04 +0000 (15:23 -0400)]
a11y: Track window states more closely

Orca ignores events unless the object is inside an object
with role window and states ACTIVE and SHOWING. To arrange
for this, introduce a new ACTIVE platform state, and set it
for windows when they are active.

This gets orca to be a lot more talkative.

4 years agoa11y: Add the root object to the cache
Matthias Clasen [Sat, 17 Apr 2021 19:21:41 +0000 (15:21 -0400)]
a11y: Add the root object to the cache

Not 100% sure this is necessary, but maybe it helps
to get orca up to speed.

4 years agoatspicontext: Remove an unused field
Matthias Clasen [Sat, 17 Apr 2021 18:12:28 +0000 (14:12 -0400)]
atspicontext: Remove an unused field

We don't make any use of the cache field, so drop it.

4 years agoMerge branch 'wip/exalm/shader' into 'master'
Matthias Clasen [Mon, 19 Apr 2021 18:01:44 +0000 (18:01 +0000)]
Merge branch 'wip/exalm/shader' into 'master'

gsk: Fix shader gresource paths

See merge request GNOME/gtk!3453

4 years agoUpdate Nepali translation
Pawan Chitrakar [Mon, 19 Apr 2021 16:00:12 +0000 (16:00 +0000)]
Update Nepali translation

(cherry picked from commit 2a8fd6a4880c6e484cb8be081dff32095033cf2a)

4 years agoUpdate Nepali translation
Pawan Chitrakar [Mon, 19 Apr 2021 15:57:37 +0000 (15:57 +0000)]
Update Nepali translation

(cherry picked from commit 4e243d7d121eac1743f4103ff8af8bc3caba0c99)

4 years agogsk: Fix shader gresource paths
Alexander Mikhaylenko [Mon, 19 Apr 2021 14:59:58 +0000 (19:59 +0500)]
gsk: Fix shader gresource paths

They were never updated after having been moved.

4 years agoUpdate Polish translation
Piotr Drąg [Sun, 18 Apr 2021 10:44:35 +0000 (12:44 +0200)]
Update Polish translation

4 years agoMerge branch 'gtksecurememory-updates' into 'master'
Emmanuele Bassi [Sat, 17 Apr 2021 23:46:38 +0000 (23:46 +0000)]
Merge branch 'gtksecurememory-updates' into 'master'

gtksecurememory: Request that secure memory not be dumped to disk

See merge request GNOME/gtk!3452

4 years agomeson: check for madvise()
Jason Francis [Sat, 17 Apr 2021 23:28:36 +0000 (19:28 -0400)]
meson: check for madvise()

4 years agogtksecurememory: Request that secure memory not be dumped to disk
Matthew Garrett [Fri, 19 Apr 2019 20:08:32 +0000 (13:08 -0700)]
gtksecurememory: Request that secure memory not be dumped to disk

Linux 3.4 added support for the MADV_DONTDUMP option to madvise(), which
requests that the covered memory not be included in coredumps. It makes
sense to use this to prevent cases where application crashes could
result in secrets being persisted to disk or included in dumps that are
uploaded to remote servers for analysis. I've avoided making this fatal
since there's a chance this code could be built on systems that have
MADV_DONTDUMP but run on systems that don't.

4 years agoMerge branch 'a11y-debug' into 'master'
Matthias Clasen [Sat, 17 Apr 2021 16:39:20 +0000 (16:39 +0000)]
Merge branch 'a11y-debug' into 'master'

testatcontext: Print out platform changes

See merge request GNOME/gtk!3451

4 years agoa11y: Add more debug spew
Matthias Clasen [Sat, 17 Apr 2021 15:59:04 +0000 (11:59 -0400)]
a11y: Add more debug spew

This is in an attempt to figure out why orca won't speak.

4 years agotestatcontext: Print out platform changes
Matthias Clasen [Sat, 17 Apr 2021 02:18:52 +0000 (22:18 -0400)]
testatcontext: Print out platform changes

This helps debugging what changes orca sees.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 16 Apr 2021 23:51:10 +0000 (23:51 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

image, picture: Move pixbuf code to gdkpixbufutils

See merge request GNOME/gtk!3449

4 years agoplacesview: Fix server mount feedback
Matthias Clasen [Fri, 16 Apr 2021 23:34:24 +0000 (19:34 -0400)]
placesview: Fix server mount feedback

We weren't properly resetting the in-entry progress.

4 years agoplacesview: Fix mounting remote locations
Matthias Clasen [Fri, 16 Apr 2021 23:17:37 +0000 (19:17 -0400)]
placesview: Fix mounting remote locations

This was broken by a stupid copy-paste error.

4 years agomountoperation: Some cosmetics
Matthias Clasen [Fri, 16 Apr 2021 23:05:14 +0000 (19:05 -0400)]
mountoperation: Some cosmetics

Fix up the dialog minimally.

4 years agocssimageurl: Remove direct pixbuf use
Matthias Clasen [Fri, 16 Apr 2021 22:05:21 +0000 (18:05 -0400)]
cssimageurl: Remove direct pixbuf use

Rely on the gdkpixbufutils api that gives us
a paintable.

4 years agoimage, picture: Move pixbuf code to gdkpixbufutils
Matthias Clasen [Fri, 16 Apr 2021 21:17:26 +0000 (17:17 -0400)]
image, picture: Move pixbuf code to gdkpixbufutils

This cleans up and moves the code to load files
while taking the scale into account. Along the way,
we drop the last uses of GdkPixbufAnimation, and
consolidate the pixbuf using code in one place.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 16 Apr 2021 15:16:48 +0000 (15:16 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

pixbufutils: Remove an unused function

See merge request GNOME/gtk!3447

4 years agoMerge branch 'wayland-xdg-surface-setup' into 'master'
Matthias Clasen [Fri, 16 Apr 2021 15:16:28 +0000 (15:16 +0000)]
Merge branch 'wayland-xdg-surface-setup' into 'master'

wayland: Don't duplicate xdg_surface setup code

See merge request GNOME/gtk!3191

4 years agoMerge branch 'wayland-parent-shadow-refactor' into 'master'
Jonas Ådahl [Fri, 16 Apr 2021 14:34:42 +0000 (14:34 +0000)]
Merge branch 'wayland-parent-shadow-refactor' into 'master'

wayland: Avoid directly accessing shadow property of parent surface

See merge request GNOME/gtk!3190

4 years agowayland: Don't duplicate xdg_surface setup code
David Keijser [Wed, 3 Feb 2021 21:09:11 +0000 (22:09 +0100)]
wayland: Don't duplicate xdg_surface setup code

4 years agowayland: Avoid directly accessing shadow property of parent surface
David Keijser [Sat, 30 Jan 2021 17:21:56 +0000 (18:21 +0100)]
wayland: Avoid directly accessing shadow property of parent surface

4 years agopixbufutils: Remove an unused function
Matthias Clasen [Fri, 16 Apr 2021 10:52:43 +0000 (06:52 -0400)]
pixbufutils: Remove an unused function

4 years agoMerge branch 'latest.glib.msvc' into 'master'
Matthias Clasen [Fri, 16 Apr 2021 12:25:43 +0000 (12:25 +0000)]
Merge branch 'latest.glib.msvc' into 'master'

Fix builds against latest stable GLib with MSVC

See merge request GNOME/gtk!3443

4 years agoMerge branch 'fix-focus-unsetting' into 'master'
Matthias Clasen [Fri, 16 Apr 2021 11:47:44 +0000 (11:47 +0000)]
Merge branch 'fix-focus-unsetting' into 'master'

window: Fix deferred focus unsetting

Closes #3413

See merge request GNOME/gtk!3446